package com.smile67.service;

import com.smile67.pojo.dto.EmployeeDTO;
import com.smile67.pojo.dto.EmployeeLoginDTO;
import com.smile67.pojo.dto.EmployeePageQueryDTO;
import com.smile67.pojo.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smile67.common.restult.PageResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author smile67
 * @since 2023-09-05
 */
public interface IEmployeeService extends IService<Employee> {

    /**
     *员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     *分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 更新员工
     * @param employee
     */
    void update(Employee employee);

    /**
     * 新增员工
     * @param employeeDTO
     */
    void save(EmployeeDTO employeeDTO);
}
